//
//  TimeAvailabilityResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/20.
//

import UIKit
import ObjectMapper

class TimeAvailabilityResModel: Mappable {
    var code: String?
    var msg: String?
    var data: [TimeAvailabilityDataModel]?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) { }
}

class TimeAvailabilityDataModel: Mappable {
    var currentQuantity : Int?
    var endTime : String?
    var joinDate : String?
    var quantity : Int?
    var slotId : Int?
    var startTime : String?
    var status : Int?
    
    var selectFlag: Bool = false
    var selectTimeBlock: (()->Void)?
    func mapping(map: Map) {
        currentQuantity <- map["currentQuantity"]
        endTime <- map["endTime"]
        joinDate <- map["joinDate"]
        quantity <- map["quantity"]
        slotId <- map["slotId"]
        startTime <- map["startTime"]
        status <- map["status"]
    }
    
    required init?(map: ObjectMapper.Map) {
        
    }
    
}
